﻿#include "mytestclass.h"

MyTestClass::MyTestClass()
{

}

void MyTestClass::SetUp()
{
    libptr=new FuncLib();
}

void MyTestClass::TearDown()
{
    delete libptr;
}

void MyTestClass::TestFuncLib_add()
{
    int res=  libptr->add(3,2);
    EXPECT_EQ(5, res);
}

TEST_F(MyTestClass,TestFuncLib_add )
{
   TestFuncLib_add();
}
